package com.huabo.system.service;


import com.huabo.system.mysql.entity.TblSystemModuleMySql;
import com.huabo.system.oracle.entity.TblSystemModule;

import java.util.Map;

public interface TblSystemModuleService {


    Map<String, Object> selectPageInfoByOrgId(Integer pageNumber, Integer pageSize, String token, String staffId, TblSystemModule module);

    Map<String, Object> selectMySqlPageInfoByOrgId(Integer pageNumber, Integer pageSize, String token, String staffId, TblSystemModuleMySql module);

    Integer checkReplay(TblSystemModule module, int type, String token, String staffId);

    Integer checkMySqlReplay(TblSystemModuleMySql module, int type, String token, String staffId);

    Map<String, Object> saveEntity(String token, String staffId, TblSystemModule module, Integer[] flowid,
                                   Integer[] flowOrderNo);

    Map<String, Object> saveMySqlEntity(String token, String staffId, TblSystemModuleMySql module, Integer[] flowid,
                                        Integer[] flowOrderNo);

    TblSystemModule findAllInfoById(Integer moduleId);

    TblSystemModuleMySql findAllMySqlInfoById(Integer moduleId);

    Map<String, Object> modifyEntity(String token, String staffId, TblSystemModule module, Integer[] flowid, Integer[] flowOrderNo);

    Map<String, Object> modifyMySqlEntity(String token, String staffId, TblSystemModuleMySql module, Integer[] flowid, Integer[] flowOrderNo);

    void modifyFlowModifyStatus(Integer moduleStatus, Integer moduleId);

    String findModelTypeByModuleId(Integer moduleId);

    Integer selectOrgManageRight(String id, String rightId);

    void saveOrgRightRelation(String id, String rightId, int type);

    void dealModuleFlowOrganizationRealtion(Integer moduleId, String orgId);

    void removeStaffModuleRelation(Integer moduleId, String orgId);

    void removeModelFlowRelation(String[] flowIds, Integer modelId);
}
